package sdk.pay.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import static sdk.pay.sqlite.DatabaseControl.creatAllTable;

/**
 * Created by Joe on 2017/6/10 0010 09:24.
 * TimeStatistics sqlite database
 */

public class DatabaseHelper extends SQLiteOpenHelper {
    private static final int SCHEMA_VERSION = 1;

    public DatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory, SCHEMA_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        creatAllTable(db, false);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }

    @Override
    public void onOpen(SQLiteDatabase db) {
        super.onOpen(db);
    }

}
